package com.kl.em;
//枚举里面叫枚举 枚举就是将我们可能出现的所有结果都列举出来,然后使用的时候直接取出
//枚举里有多少值就要定义多少个属性,而且数据类型要保持一致
//枚举类中必须要有构造器
public enum ConstantEnum {
    SUCCESS(1000,"操作成功"),
    ERROR(1004,"操作失败"),
    ARGS_NULL(1001,"参数为空"),
    NotOne(1002,"要输入首字母不能多个"),
    //--------------------------------
    //--------------------------------
    //--------------------------------
    //--------------------------------
    sellerIdNull(1005,"商家用户名为空"),
    FaillBack(1007,"熔断"),
    GATEWAY_ERROR(1008,"网关连接失败"),
//    zhx添加文件
    ACCOUNT_NOT(2001,"账号不存在"),
    PASS_ERROR(2002,"密码错误"),
    ACCOUNT_ERROR(2003,"账号异常"),
    LOGIN_SUCCESS(2004,"登录成功"),
    LOGIN_ERROR(2005,"未登陆"),
    SellerPassWordNull(1006,"商家密码为空"),
    WRONGPASSWORD(1009,"用户名或密码错误"),
    UNREGISTERED(1010,"用户未注册"),
    ACCOUNT_IS_FROZEN(1011,"账号被冻结"),
    CAR_IS_NULL(1012,"本站点无空车可以装货"),
    ROB_ERROR(1016,"订单已被其他送货员抢走,您可以选择其他订单"),
    NO_CITY(1017,"找不到当前城市"),
    NOLOGIN(1013,"未登录"),
    PAYED(1014,"已经支付"),
    RETURNNULL(1015,"未查询到");
    private Integer code;
    private String message;

    ConstantEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
